Skip to content

Conversation

@yibozhuang
Copy link
Contributor

This change adds extension to the CIDR and IPAddress types to implement custom encode/decode functions for Codable conformance to use their string representation as the output from encode and input to decode. This would make the output from encoding this type (e.g. JSON) more human-readable rather than using the internal integer representation.

This change adds extension to the CIDR and IPAddress
types to implement custom encode/decode functions for
Codable conformance to use their string representation
as the output from encode and input to decode. This would
make the output from encoding this type (e.g. JSON) more
human-readable rather than using the internal integer
representation.
@jglogan jglogan merged commit dcbc7bf into apple:main Dec 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants